package com.bgs.eat.menuBack.mapper;

import com.bgs.eat.config.BaseMapper;
import com.bgs.eat.menuBack.entity.MenuBackEntity;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName MenuBackMapper
 * @Description TODO
 * @Author cjl
 * @Date 2022/10/12 10:20
 **/
public interface MenuBackMapper extends BaseMapper<MenuBackEntity> {
    @Select("<script>" +
            "select * from menu_back" +
            " where del_flag = 0" +
            "</script>")
    @Results({
            @Result(property = "id",column = "id"),
            @Result(property = "menuName",column = "menu_name"),
            @Result(property = "icon",column = "icon"),
            @Result(property = "path",column = "path"),
            @Result(property = "parentId",column = "parent_id"),
            @Result(property = "createTime",column = "create_time"),
            @Result(property = "updateTime",column = "update_time"),
            @Result(property = "back",column = "back"),
            @Result(property = "delFlag",column = "del_flag"),
    })
    List<MenuBackEntity> selectMenuBackEntity();


}
